package com.oracle.search.service.api;

import com.oracle.pojo.News;
import com.oracle.pojo.dto.SearchNewsDTO;
import com.oracle.vo.PageVo;
import com.oracle.vo.ResultEntity;

import java.util.List;

public interface SearchServiceApi {

    /**
     * 根据条件从ES中检索数据
     * @param searchNewsDTO
     * @return
     */
    ResultEntity<PageVo<News>> getNewsBySearch(SearchNewsDTO searchNewsDTO);
}
